<?php

namespace Admin\Model;
use Think\Model;
//use Think\Model\RelationModel;
/**
 * 配置模型
 */

class VipModel extends Model {
	
    protected $_validate = array(
        array('title', 'require', '名称不能为空!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
		array('money', 'require', '金额不能为空!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('money', 'number', '金额必须为数字!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('days', 'require', '时间不能为空!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('days', 'number', '时间必须为数字!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
		array('level', 'number', '等级必须为数字!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
        array('level', 'require', '等级不能为空!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),
		//array('user_type', 'require', '请选择用户分组!', self::EXISTS_VALIDATE, 'regex', self::MODEL_BOTH),

    );
    protected $_auto = array(
        //array('status', 1, self::MODEL_INSERT),
        array('create_time', NOW_TIME, self::MODEL_INSERT),
    );

	
	


}
